//
//  YDYComment.h
//  DYSisterAPP
//
//  Created by 杨德勇 on 16/8/4.
//  Copyright © 2016年 杨德勇. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef enum{
    YDYTopicTypeAll = 1,
    YDYTopicTypePicture = 10,
    YDYTopicTypeWord = 29,
    YDYTopicTypeVoice = 31,
    YDYTopicTypeVideo = 41,
}YDYTopicType;
@class YDYComment;
@interface YDYTopic : NSObject
/** id */
@property (nonatomic, copy) NSString *ID;
/** user name */
@property (nonatomic, copy) NSString *name;
/** 头像 */
@property (nonatomic, copy) NSString *profile_image;
/** 帖子文字内容 */
@property (nonatomic, copy) NSString *text;
/** 帖子审核通过时机 */
@property (nonatomic, copy) NSString *created_at;
/** 赞数量 */
@property (nonatomic, assign) NSInteger ding;
/** 踩数量 */
@property (nonatomic, assign) NSInteger cai;
/** 转发量 */
@property (nonatomic, assign) NSInteger repost;
/** 评论量 */
@property (nonatomic, assign) NSInteger comment;
/** 最热评论 */
@property (nonatomic, strong) YDYComment *top_cmt;
/** 中间内容真实宽度 */
@property (nonatomic, assign) CGFloat width;
/** 中间内容真实高度 */
@property (nonatomic, assign) CGFloat height;
/** 帖子类型 10图片 29段子31音频 41视频 */
@property (nonatomic, assign) YDYTopicType type;
/** large image */
@property (nonatomic, copy) NSString *large_img;
/** middle image */
@property (nonatomic, copy) NSString *middle_img;
/** small image */
@property (nonatomic, copy) NSString *small_img;
/** is gif */
@property (nonatomic, assign) BOOL is_gif;
/** 音频长度 */
@property (nonatomic, assign) NSInteger voicetime;
/** 视频长度 */
@property (nonatomic, assign) NSInteger videotime;
/** 播放次数 */
@property (nonatomic, assign) NSInteger playcount;

/****自定义属性*****/

/** cell height */
@property (nonatomic, assign) CGFloat cellHeight;
/** 中间内容的frame */
@property (nonatomic, assign) CGRect contentF;
/** is big picture */
@property (nonatomic, assign,getter=isBigPicture) BOOL bigPicture;
@end
